import config from "@/config"
import http from "@/utils/request"

export default {
    //提醒
	plan:{
		list: {
			url: `${config.API_URL}/adminapi/Schedule/lists`,
			name: "列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/Schedule/edit`,
			name: "修改",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/Schedule/add`,
			name: "添加",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/Schedule/delete`,
			name: "删除",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		get_list: {
			url: `${config.API_URL}/adminapi/Schedule/all`,
			name: "获取全部",
			get: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		detail: {
			url: `${config.API_URL}/adminapi/Schedule/detail`,
			name: "详情",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        checkStatus: {
			url: `${config.API_URL}/adminapi/Schedule/changeStatus`,
			name: "完成任务",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
}
